package com.gills.weather.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gills.weather.entity.Forecast;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ForecastMapper  extends BaseMapper<Forecast> {
    //根据id查询

    @Select("select * from weather_forecast where id=#{id}")
    Forecast findbyid(int id);
    //查询所有数据

    @Select("select * from weather_forecast")
    List<Forecast> findAll();


}
